// vite.config.ts
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///C:/codes/dawnadminserver/DawnAdminUI/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/codes/dawnadminserver/DawnAdminUI/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import AutoImport from "file:///C:/codes/dawnadminserver/DawnAdminUI/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///C:/codes/dawnadminserver/DawnAdminUI/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///C:/codes/dawnadminserver/DawnAdminUI/node_modules/unplugin-vue-components/dist/resolvers.js";
import removeConsole from "file:///C:/codes/dawnadminserver/DawnAdminUI/node_modules/vite-plugin-remove-console/dist/index.mjs";
var __vite_injected_original_import_meta_url = "file:///C:/codes/dawnadminserver/DawnAdminUI/vite.config.ts";
var vite_config_default = defineConfig({
  plugins: [
    ...process.env.NODE_ENV == "production" ? [removeConsole()] : [],
    vue(),
    //element-plus按需要引入
    AutoImport({
      resolvers: [ElementPlusResolver()]
    }),
    Components({
      resolvers: [ElementPlusResolver()]
    })
  ],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  },
  // 配置前端服务地址和端口,默认端口是5173
  server: {
    host: "0.0.0.0",
    port: 5175
  },
  define: {
    "process.env": {
      //development production test
      "ServerUrl": process.env.NODE_ENV == "development" ? "http://127.0.0.1:5055" : ".."
      //127.0.0.1:10001 18.183.223.73
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxjb2Rlc1xcXFxkYXduYWRtaW5zZXJ2ZXJcXFxcRGF3bkFkbWluVUlcIjtjb25zdCBfX3ZpdGVfa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